package com.cn.util;

import cn.hutool.core.util.RandomUtil;

/**
 * description: PassRandomStrUtil <br>
 * date: 23.9.26 16:48 <br>
 * author: cn_yaojin <br>
 * version: 1.0 <br>
 */
public class PassRandomStrUtil {

    private static String codeStr = "ABCDEFGHKMNPRSTUVWXYZ";

    private static String codeStrLow = "abcdefghkmnrstuvwxyz";

    private static String codeStr1 = "!@#$%";

    private static String str_split = "_";

    public static String getPass() {
        StringBuilder sb = new StringBuilder();
        sb.append(RandomUtil.randomString(codeStr, 2));
        sb.append(RandomUtil.randomString(codeStrLow, 2));
        sb.append(str_split);
        sb.append(RandomUtil.randomNumbers(4));
        sb.append(RandomUtil.randomString(codeStr1, 1));
        return sb.toString();
    }

    public static void main(String[] args) {
        for (int i = 0; i < 40; i++) {
            System.out.println(getPass());
        }

    }

}
